package com.highcom.springboot0305mybatis.service.impl;

import com.highcom.springboot0305mybatis.bean.Emp;
import com.highcom.springboot0305mybatis.mapper.EmpMapper;
import com.highcom.springboot0305mybatis.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpMapper empMapper;

    @Override
    public void insertEmp(Emp emp) {
        empMapper.insert(emp);
    }

    @Override
    public Emp getEmp(Integer id) {

        return empMapper.getEmp(id);
    }
}
